<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
</head>

<body>
    <h1>async函数返回值</h1>
    <script>
        const setup = () => {
            return 'setup-普通函数返回值'
        }
        const res = setup()
        console.log(111, res)

        // async 函数的返回值是 Promise 对象
        const setup2 = async () => {
            return 'setup2-async函数返回值'
        }
        const res2 = setup2()
        console.log(222, res2)   //  Promise 对象，函数返回值在 Promise 对象内部
    </script>
</body>

</html>
